﻿#include "Transform.h"


namespace Base {
	Matrix4x4& Transform::GetLocalMatrix() {
		if (m_localDirty)
		{
			m_worldMatrix = Matrix4x4::TRS(m_localPosition, m_localRotation, m_localScale);
			m_localDirty = false;
		}
		return m_worldMatrix;
	}
}